import { ObjectType, Field } from '@nestjs/graphql';
import { Author } from '../../authors/entities/author.entity';
@ObjectType()
export class Book {
  @Field(() => String)
  book_id: string;
  @Field(() => String)
  book_title: string;
  @Field(() => String, { nullable: true })
  publication_year: number;
  @Field(() => String, { nullable: true })
  author_id: string;
  @Field(() => Author, { nullable: true })
  author: Author;
}